package cn.iocoder.yudao.module.book.controller.admin.book.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.Date;

import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 图书新增/修改 Request VO")
@Data
public class BookSaveReqVO {

    @Schema(description = "图书ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23487")
    private Long id;

    @Schema(description = "国际标准书号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "国际标准书号不能为空")
    private String isbn;

    @Schema(description = "书名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "书名不能为空")
    private String title;

    @Schema(description = "出版社ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28766")
    @NotNull(message = "出版社ID不能为空")
    private Long publisherId;

    @Schema(description = "分类ID", example = "4444")
    private Long categoryId;

    @Schema(description = "图书描述", example = "你说的对")
    private String description;

    @Schema(description = "出版日期")
    private Date publishDate;

    @Schema(description = "语言")
    private String language;

    @Schema(description = "页数")
    private Integer pages;

}